package com.rockcent.mall.lib.dto;

import com.rockcent.common.utils.RDigestUtils;

import java.util.Date;
import java.util.Random;

/**
 * Created by Marco on 17-3-29.
 */
public class WechatPaymentAttachDto {

    private Long payId;
    private String checkCode= RDigestUtils.md5Hex(new Date().getTime() + new Random().nextInt() + "");
    private String domain;

    public Long getPayId() {
        return payId;
    }

    public void setPayId(Long payId) {
        this.payId = payId;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    @Override
    public String toString() {
        return "WechatPaymentAttachDto{" +
                "payId=" + payId +
                ", checkCode='" + checkCode + '\'' +
                ", domain='" + domain + '\'' +
                '}';
    }
}
